MY COURSES
>
06S CLIENT SIDE JAVA-01
>
ASSIGNMENTS
>
CHAPTER QUIZZES
> TAKE ASSESSMENT CHAPTER 9 QUIZ
Take Assessment Chapter 9 Quiz
Name:
Chapter 9 Quiz
Instructions:
Multiple Attempts:
This Test allows multiple attempts.
Force Completion:
This Test can be saved and resumed later.
Question Completion Status:
1
2
3
4
5
6
7
8
9
10
Question 1
1 points
Save
This access control permits access from subclasses, but denies access from anywhere not in the class or its subclasses.
default
public
private
protected
Question 2
1 points
Save
This access control permits access from within the class, but denies access from anywhere else.
protected
private
default
public
Question 3
1 points
Save
If z is declared public in a superclass, a subclass can modify the value of x without using a setter method in the superclass.
True
False
Question 4
1 points
Save
During compile time, the ______ type is used during type checking.
private
dynamic
static
protected
Question 5
1 points
Save
When "v1.print();" is executed, we use the _______ type to determine which print method is called.
dynamic
private
static
protected
Question 6
1 points
Save
A protected method in a superclass can be accessed from the subclass.
True
False
Question 7
1 points
Save
A private method in a superclass can be accessed from the subclass.
True
False
Question 8
1 points
Save
'Method lookup' and 'method dispatch' are synonymous (i.e. they mean the same thing).
True
False
Question 9
1 points
Save
When the same method call may at different times invoke different methods based on the dynamic type, this is called method
overriding
polymorphism
replacement
redefintion
Question 10
1 points
Save
If y is declared private in a superclass, a subclass can modify the value of x without using a setter method in the superclass.
True
False